package lacus.wd_cinema.dto.users;

import lacus.wd_cinema.entity.User;
import lombok.Data;

/**
 * 用户创建响应体
 * @author lacus
 * @version 0.4
 * @since 0.4
 */
@Data
public class UserCreateResponse {
    private long id;

    public static UserCreateResponse from(User user) {
        UserCreateResponse response = new UserCreateResponse();
        response.setId(user.getId());
        return response;
    }
}
